package com.ruoyi.project.anquan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.anquan.mapper.SecurityFlfgkMapper;
import com.ruoyi.project.anquan.domain.SecurityFlfgk;
import com.ruoyi.project.anquan.service.ISecurityFlfgkService;

/**
 * 法律法规Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-05-09
 */
@Service
public class SecurityFlfgkServiceImpl implements ISecurityFlfgkService 
{
    @Autowired
    private SecurityFlfgkMapper securityFlfgkMapper;

    /**
     * 查询法律法规
     * 
     * @param id 法律法规ID
     * @return 法律法规
     */
    @Override
    public SecurityFlfgk selectSecurityFlfgkById(Long id)
    {
        return securityFlfgkMapper.selectSecurityFlfgkById(id);
    }

    /**
     * 查询法律法规列表
     * 
     * @param securityFlfgk 法律法规
     * @return 法律法规
     */
    @Override
    public List<SecurityFlfgk> selectSecurityFlfgkList(SecurityFlfgk securityFlfgk)
    {
        return securityFlfgkMapper.selectSecurityFlfgkList(securityFlfgk);
    }

    /**
     * 新增法律法规
     * 
     * @param securityFlfgk 法律法规
     * @return 结果
     */
    @Override
    public int insertSecurityFlfgk(SecurityFlfgk securityFlfgk)
    {
        return securityFlfgkMapper.insertSecurityFlfgk(securityFlfgk);
    }

    /**
     * 修改法律法规
     * 
     * @param securityFlfgk 法律法规
     * @return 结果
     */
    @Override
    public int updateSecurityFlfgk(SecurityFlfgk securityFlfgk)
    {
        return securityFlfgkMapper.updateSecurityFlfgk(securityFlfgk);
    }

    /**
     * 批量删除法律法规
     * 
     * @param ids 需要删除的法律法规ID
     * @return 结果
     */
    @Override
    public int deleteSecurityFlfgkByIds(Long[] ids)
    {
        return securityFlfgkMapper.deleteSecurityFlfgkByIds(ids);
    }

    /**
     * 删除法律法规信息
     * 
     * @param id 法律法规ID
     * @return 结果
     */
    @Override
    public int deleteSecurityFlfgkById(Long id)
    {
        return securityFlfgkMapper.deleteSecurityFlfgkById(id);
    }
}
